from flask import Flask
from flask_cors import CORS
import json

app = Flask(__name__)
CORS(app, resources=r'/*')

@app.route("/get_vue_json", methods=['GET'])
def get_vue_json(): 
    with open("../public/data.json", "r", encoding="utf8") as f:
        data = f.read()
        data = data.replace(" ", "").replace("\n", "")
    return json.loads(data)

if __name__ == "__main__":
    app.run(debug=True, port=5000)